<!doctype html>
<html>
<footer id="footer" class="bottom"></footer>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/zepto.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/simple-plugin.js"></script>
<script>
  $(window).ready(function(){
    var key = getCookie('key');
    var username = getCookie('username');
    if (!key) {
      window.location.href = DBSITE+'w';
      return;
    }
    $.ajax({
      type:'post',
      url:ApiUrl+"/index.php?act=logout",
      data:{client:'wap',username:username,key:key},
      dataType:'json',
      success:function(result){
        delCookie('key');
        window.location.href = 'login.html';
      }
    });
  });

</script>
</body>
</html>